package com.hl.qzzpbackend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hl.qzzpbackend.model.dto.application.ApplicationAddRequest;
import com.hl.qzzpbackend.model.dto.application.ApplicationQueryRequest;
import com.hl.qzzpbackend.model.dto.application.ApplicationUpdateStatusRequest;
import com.hl.qzzpbackend.model.entity.Application;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hl.qzzpbackend.model.vo.ApplicationVO;

/**
 * 求职申请业务层
 * @author helong
 */
public interface ApplicationService extends IService<Application> {

    /**
     * 新增职位申请
     * @param applicationAddRequest 新增职位申请请求类
     * @return 是否成功
     */
    boolean applicationAdd(ApplicationAddRequest applicationAddRequest);

    /**
     * 更新职位申请状态
     * @param applicationUpdateStatusRequest 更新职位申请状态请求类
     * @return 是否成功
     */
    boolean applicationUpdateStatus(ApplicationUpdateStatusRequest applicationUpdateStatusRequest);

    /**
     * 筛选简历
     * @param applicationQueryRequest 筛选简历请求类
     * @return 简历列表
     */
    Page<ApplicationVO> applicationScreenResume(ApplicationQueryRequest applicationQueryRequest);
}
